package com.itheima.xiancheng.demo2;

import java.util.concurrent.ArrayBlockingQueue;

public class Demo2 {
    public static void main(String[] args) {
        ArrayBlockingQueue<String > abq=new ArrayBlockingQueue<>(1);
        Cooker c=new Cooker(abq);
        Foodie f=new Foodie(abq);
        c.start();
        f.start();
    }
}
